import React, {Component} from 'react';
import {Button} from 'antd';
import { Link } from 'react-router-dom';
import Hoc from './control';
class A13 extends Component{
    render() {
        let {list} = this.props;
        return (
            <div>
                <span>{this.props.name}</span>
                <Button type='primary'>
                    <Link to='/a/a11/'>新增库存调整</Link>
                </Button>
                <Button onClick={this.props.addItem}>添加数据</Button>
                {
                    list.map(val=> {
                        return <div key={val.id}><span>{val.name}</span></div>
                    })
                }
            </div>
        )
    }
}

export default Hoc(A13);